package tech.aistar.day05.homework;

import java.util.Date;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 9:08 上午
 */
public class BasedPlusSalesEmployee extends SalesEmployee{

    private double base;

    public BasedPlusSalesEmployee() {
    }

    public BasedPlusSalesEmployee(String name, Date birthday, double sales, double rank, double base) {
        super(name, birthday, sales, rank);
        this.base = base;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month)+base;
    }
}
